import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: index,
      children:[
        {
          path: '/list',
          name: 'list',
          component: () => import('@/views/topic/topicList')
        },
        {
          path: '/topicDetail/:id',
          name: 'topicDetil',
          component: () => import('@/views/topic/topicDetail')
        }
      ]
    }
    
  ]
})
